package com.daigg.hoteladmin.service;


import com.daigg.hoteladmin.pojo.po.OrderPO;
import com.daigg.hoteladmin.pojo.vo.OrderVO;
import com.daigg.hoteladmin.tools.Page;

import java.util.List;

/**
 * @description 订单服务层
 * @author daiyang
 */
public interface IOrderService {
    OrderPO selectOneById(String id);
    OrderPO add(OrderVO orderVO);
    OrderVO selectOneByIdReturnVO(String id);
    OrderPO save(OrderVO orderVO);
    Integer deleteById(String id);
    OrderVO saveone(OrderVO orderVO);
    Page<OrderVO> getPage(OrderVO orderVO);
    OrderVO addOne(OrderVO orderVO);
    List<OrderVO> getAllList(OrderVO orderVO);
    void randomOrder();

    OrderVO createNewOrder(OrderVO orderVO);

    String cancelOrder(String id);

    Page<OrderVO> my(OrderVO orderVO);

    List<OrderVO> count(OrderVO orderVO);

    void payOrder(String orderId,String walletPwd);

    //    暂时注释支付宝相关代码
    // String prePayOrderForAlipay(String orderId) throws Exception;

    // Boolean checkPayOrderForAlipay(String orderId) throws Exception;

    // String cancelOrderForAlipay(String orderId) throws Exception;
}
